package Code.SwichDemo;

import java.util.Scanner;

//需求：键盘录入星期数，输出工作日，休息日
public class Test4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入星期：");
        String week = scanner.next();

        switch (week) {
            case "monday", "tuesday", "wednesday", "thursday", "friday" -> System.out.println("工作日");
            case "saturday", "sunday" -> System.out.println("工作日");
            default -> System.out.println("输入无效");
        }
    }
}
